package ead.simulator.sms;

import spark.Request;
import spark.Response;
import spark.Route;

import static spark.Spark.get;


public class SMSReceiver {

    public static void main(String[] args) {


        get(new Route("/receive/sms/:number/:content") {
            @Override
            public Object handle(Request request, Response response) {
                System.out.println("======================================");
                System.out.println("SMS Request Received");
                System.out.println("Number --> " + request.params(":number"));
                System.out.println("Content --> " + request.params(":content"));
                System.out.println("======================================");
                return "Hello World!";
            }
        });
    }
}
